package com.elangzhi.ssm.model;

import com.elangzhi.ssm.model.base.BaseModel;

import java.util.Date;

public class Collection extends BaseModel{

    private Long id;

    private Long goodsId;

    private Date setTime;

    private Long userId;

    //自定义列
    private Goods goods;

    public Collection(Long id, Long goodsId, Date setTime, Long userId) {
        this.id = id;
        this.goodsId = goodsId;
        this.setTime = setTime;
        this.userId = userId;
    }

    public Collection() {
        super();
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Date getSetTime() {
        return setTime;
    }

    public void setSetTime(Date setTime) {
        this.setTime = setTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}